<template>
    <div class="progress_stop">
        <div class="progressle">
            <div class="progress-bar progress-bar-info progress-bar-striped active" :style="{ width: (percent * 100).toFixed(2) + '%' }"></div>
        </div>
    </div>
</template>
<script>
export default {
	props: {
		percent: {
			type: Number,
			default: 0.7
		}
	}
}
</script>
<style scoped>
.progressle {
	width: 90%;
	height: 26px;
	background: #262626;
	padding: 5px;
	border-radius: 20px;
}

.progress-bar {
	float: left;
	width: 0;
	height: 100%;
	font-size: 12px;
	line-height: 20px;
	border-radius: 20px;
	color: #fff;
	text-align: center;
	background-color: #337ab7;
	-webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
	box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
	-webkit-transition: width 0.6s ease;
	-o-transition: width 0.6s ease;
	transition: width 0.6s ease;
}
.progress-bar-striped {
	background-image: linear-gradient(
		45deg,
		rgba(255, 255, 255, 0.15) 25%,
		transparent 25%,
		transparent 50%,
		rgba(255, 255, 255, 0.15) 50%,
		rgba(255, 255, 255, 0.15) 75%,
		transparent 75%,
		transparent
	);
	background-size: 40px 40px;
}
.progress-bar-info {
	background-color: #5bc0de;
}

.progress-bar.active {
	animation: progress-bar-stripes 2s linear infinite;
}
@keyframes progress-bar-stripes {
	from {
		background-position: 40px 0;
	}
	to {
		background-position: 0 0;
	}
}
</style>


